<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<div id="stylized" class="myform">
    <form action="<?php echo url_for('home/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
	<?php if (!$form->getObject()->isNew()): ?>
	<input type="hidden" name="sf_method" value="put" />
	<?php endif; ?>

	<?php echo $form->renderGlobalErrors() ?>

	<h1>Nový článok</h1>
	<p></p>

	<?php echo $form['category_id']->renderLabel() ?>
	<?php echo $form['category_id']->renderError() ?>
	<?php echo $form['category_id'] ?>
	<?php echo $form['type']->renderLabel() ?>
	<?php echo $form['type']->renderError() ?>
	<?php echo $form['type'] ?>
	<?php echo $form['title']->renderLabel() ?>
	<?php echo $form['title']->renderError() ?>
	<?php echo $form['title'] ?>
	<?php echo $form['content']->renderLabel() ?>
	<?php echo $form['content']->renderError() ?>
	<?php echo $form['content']; ?>
	<?php echo $form['source']->renderLabel() ?>
	<?php echo $form['source']->renderError() ?>
	<?php echo $form['source'] ?>
	<?php echo $form->renderHiddenFields(false) ?>
	<input class="button" type="submit" value="Publikovať" />
	<div class="spacer"></div>

    </form>
</div>